ARG baseJdk=pi4k8s/oraclejdk:8u201-jdk-ubuntu-18-04

FROM $baseJdk

ENV JAVA_OPTS "-Duser.timezone=Asia/Shanghai"

ENV APP_OPTS=""

ADD   gateway.jar /

EXPOSE 8220

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS  -jar /gateway.jar  $APP_OPTS" ]

# arm64v8
# docker build . -t pi4k8s/spriing-cloud-gateway:0.0.1

# x86
# docker build . -t fastjrun/spriing-cloud-gateway:0.0.1 --build-arg baseJdk=fastjrun/oraclejdk:8u201-jdk-ubuntu-18-04
